package cn.samler.shopapi.Service;

import cn.samler.shopapi.Entity.Classify;
import cn.samler.shopapi.Entity.Spec;
import cn.samler.shopapi.Entity.SpecItem;
import cn.samler.shopapi.Model.Response.Goods.GoodsBrief;
import cn.samler.shopapi.Model.Response.Goods.GoodsDetails;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface GoodsService {
    List<Classify> getClassify();

    List<GoodsBrief> getGoodsByClassify(Integer cid, Integer page, Integer offset);

    List<GoodsBrief> getGoodsBriefByIdList(List<Integer> idList);

    GoodsDetails getGoodsById(Integer id);

    List<GoodsBrief> getGoodsByHot();

    List<GoodsBrief> getGoodsByNewest();

    Spec getSpecById(Integer gid, Integer id);

    SpecItem getSpecItemById(Integer sid, Integer id);
}
